﻿using System.ComponentModel;

namespace SmartMotion.Core
{
    public class IOIn
    {
        /// <summary>
        /// 卡号  
        /// </summary>
        [ReadOnly(true)]
        public int CardIndex { get; set; }
        /// <summary>
        /// 卡内序号
        /// </summary>
        [ReadOnly(true)]
        public int IOIndex { get; set; }
        /// <summary>
        /// IO名称
        /// </summary>
        [ReadOnly(true)]
        public string Name { get; set; }
        /// <summary>
        /// 自定义名称
        /// </summary>
        public string Alias { get; set; }
        /// <summary>
        /// IO分组
        /// </summary>
        public string Group { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enable { get; set; } = false;

        [ReadOnly(true)]
        public string GUID { get; set; }

        public bool Value { get; set; }

        /// <summary>
        /// 等待值
        /// </summary>  
        /// <param name="waitValue"></param>
        /// <returns></returns>
        public bool Wait(bool waitValue)
        {
            return false;
        }

    }
}